<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JsBench</title>
<link href="style.css" rel="stylesheet" type="text/css">
<script src="json2.js"></script>
<script src="benchmark.js"></script>
<script>
  var isSignedIn = !!'{{ nickname }}';
  function processQS() {
    var qs = window.location.hash.substring(1);
    var pairs = qs.split('&');
    var kv;
    var hasSuiteParam = false;
    for (var i = pairs.length - 1; i >= 0; --i) {
      kv = pairs[i].split('=');
      if (kv[0] == 'suite') {
        loadSuite(kv[1]);
        hasSuiteParam = true;
      }
    }
    if (!hasSuiteParam && !isSignedIn) {
      loadSuite('new');
    }
  }
</script>
</head>
<body onload="listSuites();processQS();">
<table align=center border=0 cellpadding=0 cellspacing=0>
<tr height=6>
<td height=6 width=6 class="corner"></td>
<td height=6 class="border"></td>
<td height=6 width=6 class="corner" style="background-position:-6px 0"></td>
</tr>
<tr>
<td width=6 class=border></td>
<td id="mainTD">
<form onsubmit="return false">
<div id="contentDiv">
<div style="float:right">{{ nickname }}<a href="help.html">Help</a>&nbsp;|&nbsp;<a href="{{ url }}">{{ url_linktext }}</a></div>
<span id="headerElem">JsBench</span>
<span id="titleElem"
      onmouseover="this.style.background='#ffffd6'"
      onmouseout="this.style.background=''"
      onclick="this.style.display='none';
	       document.forms[0].titleInput.value=window.benchmarksuite.name;
               document.forms[0].titleInput.style.display='inline';
	       document.forms[0].titleInput.focus();"></span>
<input type="text" name="titleInput" id="titleInput" size=15
       onblur="this.style.display='none';
	       document.getElementById('titleElem').style.display='inline';
	       document.getElementById('titleElem').innerHTML=this.value;
	       document.title='JsBench - ' + this.value;
	       window.benchmarksuite.name=this.value;
	       window.benchmarksuite.saveSuite();">
<br>
<span id="spanRunningOn"></span>
<br><br>
<label for="selSuites">Load Suite:</label>&nbsp;
<select name="selSuites" id="selSuites"
	onchange="this.value && loadSuite(this.value)"
	onmousedown="this.value = ''"></select>

<input name="cbBrowsers" id="cbBrowsers" type="checkbox" checked="checked"
       onchange="window.benchmarksuite &&
		 (window.benchmarksuite.report_runs = this.checked);">
<label for="cbBrowsers">Display other browsers</label>
<input name="cbNormalize" id="cbNormalize" type="checkbox" checked="checked"
       onchange="window.benchmarksuite &&
		 (window.benchmarksuite.normalize = this.checked);">
<label for="cbNormalize">Normalize times</label>
<br>
<img id="graphElem" height="0" width="600" src="">
<br>
<br clear=all>
<div id="suiteDiv">
<p>JsBench allows you to measure the performance of JavaScript methods
across multiple browsers and to share your results. Start by selecting "New Suite" from the dropdown box above.</p>

<p>If you are signed in, your changes will automatically be saved. Anyone can
view and run a suite but only you can modify it.</p>

<br>

</div>
</div>
</form>
</td>
<td width=6 class=border></td>
<tr height=6>
<td height=6 width=6 class="corner" style="background-position:0 -6px"></td>
<td height=6 class="border"></td>
<td height=6 width=6 class="corner" style="background-position:-6px -6px"></td>
</tr>
</table>
<center>
<a href="http://code.google.com/appengine/">
<img src="/images/appengine.png" width="120" height="32"
     alt="Powered by Google AppEngine" border="0" vspace="5">
</a>
<br>
<a id="copyright" href="http://code.google.com/p/jsbench/">Open Source</a><br>
<span id="copyright">Copryright &copy; 2008 Tony Gentilcore</span></center>
</body>
</html>
